package com.xes.attend.repo;

import java.util.List;

import com.xes.attend.domain.AttendData;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;


public interface AttendDataDao extends CrudRepository<AttendData, String> {

	AttendData findById(String id);
	
	List<AttendData> findByAttendanceCardNum(String cardNum);
	
	List<AttendData> findByIsSend(Integer isSend);

//	AttendData findOne();

	List<AttendData> findFirstByIsDelete(Integer isDelete);

	Long countByIsDelete(Integer isDelete);

	Long countByIsAbsentAndIsDelete(Integer isAbsent, Integer isDelete);

//	Long countByIsAbsentAndIsDeleteAndIsPunctual(Integer isAbsent, Integer isDelete, Integer isPunctual);
}
